﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Produce.Domain.Entities
{
    [SugarTable("production_State")]
    public class ProductionState: BaseEntity
    {
        /// <summary>
        /// 生产类型
        /// </summary>
        [SugarColumn(ColumnName = "ProductionType", IsNullable = true)]
        public string? ProductionType { get; set; }

        /// <summary>
        /// 编码
        /// </summary>
        [SugarColumn(ColumnName = "ProductionCode", IsNullable = true)]
        public string? ProductionCode {  get; set; }

        /// <summary>
        /// 工序
        /// </summary>
        [SugarColumn(ColumnName = "Process", IsNullable = true)]
        public string? Process {  get; set; }

        /// <summary>
        /// 锁定起止日期
        /// </summary>
        [SugarColumn(ColumnName = "ProductionDateTime", IsNullable = true)]
        public DateTime? ProductionDateTime { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        [SugarColumn(ColumnName = "ProduceState", IsNullable = true)]
        public bool? ProduceState { get; set; }

        /// <summary>
        /// 锁定原因
        /// </summary>
        [SugarColumn(ColumnName = "ProductionDesc", IsNullable = true)]
        public string? ProductionDesc {  get; set; }
    }
}
